package hu.dynamicwebshop.hibernate;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

/**
 *
 * @author Szecskó Zoltán <zoltan.szecsko@gmail.com>
 */
public class Hibernate {

    @SuppressWarnings("deprecation")
    private final SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();

    public SessionFactory getSessionFactory() {
        return sessionFactory;
    }
}
